package com.example.kafka.dao;

import com.example.kafka.pojo.IndicatorDataPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "indicatorDataDao")
public interface IndicatorDataDao {

    void insertOrUpdate(@Param("indicator") IndicatorDataPo indicator);
    void deleteByIndicatorId(@Param("indicatorId") String indicatorId);

    void batchInsertOrUpdate(@Param("indicators") List<IndicatorDataPo> indicators);

    /***
     * 根据组id集合获取组列表信息
     * @param indicatorIds
     * @return
     */
    List<IndicatorDataPo> getIndicatorListByIndicatorIds(@Param("indicatorIds")List indicatorIds);
}
